﻿@model IEnumerable<LogManager.Base.ILog>
@using LogManager.Helpers
@functions{
    public string Selected(string log)
    {
        return Url.HasLog(log) ? "selected" : string.Empty;
    }    
}
<ul class="nav">
    @foreach (var log in Model)
    {
        <li class="@Selected(log.LogName)">
            @Html.ActionLink(log.LogName, "Detail", "Log", new { serverName = log.ServerName, logName = log.LogName }, null)
        </li>
    }
</ul>
